<template>
  <div class="In">
    <div class="finger">
      <n-card title="指纹" hoverable @click="finger"> 指纹登记 </n-card>
    </div>
    <div class="face">
      <n-card title="人脸" hoverable @click="face"> 人脸登记 </n-card>
    </div>
  </div>
</template>

<script>
import { useRouter } from "vue-router";
import { ref } from "vue";
export default {
  name: "Sign",
  setup() {
    const flag = ref(0);
    const router = useRouter();
    const finger = () => {
      router.push("/fingerin");
      flag.value = 1;
    };
    const face = () => {
      router.push("/facein");
    };
    return {
      flag,
      finger,
      face,
    };
  },
};
</script>

<style lang="scss">
.In {
  width: 100%;
  height: calc(100% - 130px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  .finger {
    width: 300px;
    height: 300px;
    .n-card {
      height: 100%;
      background-color: rgba(155, 0, 0, 0.6);
    }
  }
  .face {
    width: 300px;
    height: 300px;
    .n-card {
      height: 100%;
      background-color: rgba(155, 0, 0, 0.6);
    }
  }
}
</style>
